import {Component, ElementRef, OnInit, ViewChild} from '@angular/core';
import {flyIn} from "../animations/fly-in";
import {Menu} from "../header/header.component";
import {Router} from "@angular/router";

@Component({
  selector: 'app-report',
  templateUrl: './report.component.html',
  styleUrls: ['./report.component.css'],
  animations: [
    flyIn
  ]
})
export class ReportComponent implements OnInit {
  public currentId: number =1;
  public menus: Array<Menu>;
  constructor(public routInfo: Router) { }

  ngOnInit() {
    this.menus=[
      new Menu(1,'波动指标','wave','simple',[]),
      new Menu(2,'学情基础数据','baseData','simple',[]),
      new Menu(3,'成绩报表明细','baseData','simple',[])
    ]
  }
  nav(menu: Menu) {
    //console.log(menu.url);
    this.currentId=menu.id;
  }
}
